package org.bonorsoft.modules.education.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description: 通知回复表
 * @Author: WilliamYe
 * @Date: 2021-06-22
 * @Version: V1.0
 */
@Data
@TableName("sys_response")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Response {

    /**
     * ID（主键，uuid）
     */
    @TableId(type = IdType.ID_WORKER_STR)
    @Excel(name = "ID（主键，uuid）", width = 15)
    private String responseId;
    /**
     * 通知ID（关联t1字段1）
     */
    @Excel(name = "通知ID（关联t1字段1）", width = 15)
    private String noticeId;
    /**
     * 回复人(手机号，字典取名字)
     */
    @Excel(name = "回复人", width = 15)
    private String responseSender;
    /**
     * 回复时间
     */
    @Excel(name = "回复时间", width = 15, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date responseTime;
    /**
     * 回复内容
     */
    @Excel(name = "回复内容", width = 15)
    private String responseContent;
}
